<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<input type=hidden id="dealCode" name="dealCode" value="${dealCode}" />
<input type=hidden id="settleFlag" name="settleFlag" value="before" />
<div class="expandSwap">
	<div class="ui-widget-header ui-corner-all">
		<span class="text">合约信息</span> <span id="importContract"
			class="aColor"
			style="float:right;margin-bottom:10px;text-decoration:underline;cursor:pointer;"
			onclick=""><b>导入合约</b> </span>
	</div>
	<div class="expandContent">

		<%@include file="contractContent.jsp"%>
	</div>

	<div id="tableToolbar" class="tableToolbar" style="display:none;">
		<a href="javascript:void(0)" onclick="creditSettleLoan()" index="0">导出</a>
		<%--<a href="javascript:void(0)" onclick="alert('功能开发中')" index="2">试算</a>--%>
	</div>
	<div class="ui-widget-header ui-corner-all">
		<span class="text">债权操作</span>
	</div>
	<div class="expandContent">
		<table id="updateNewsTableId" class="formTableSwap" border="0"
			align="center" cellpadding="0" cellspacing="1">
			<tr>
				<th>选择债权包：</th>
				<td>
					<div class="ui-widget">
						<select id="settlePackage" 
							value="${dto.packageNum}">
						</select>
						<input id='selectPackage' name="packageNum" class='ui-autocomplete-input;' autocomplete='off'>
					</div>
				</td>
				<th><span id="abnormalSettleTitle">异常结算类型：</span></th>
				<td><syscode:dictionary name="planStatus"
						extendProperty="notNull=false" defaultValue=""
						codeType="abnormalSettle" id="abnormalSettle" className="text"
						type="select" />
				</td>
				<th>结算日期：</th><!-- //cims_noborder 无框样式-->
				<td>
					<input type="text" class="text" id="idSettleDate" name="settleDate" notNull="false" readonly/>
				</td>
			</tr>
		</table>
	</div>
	<div id="list"></div>
	<div class="ui-widget-header ui-corner-all">
		<span class="text">结算信息</span>
	</div>
	<div class="expandContent">
		<table class="formTableSwap" border="0" align="center" cellpadding="0"
			cellspacing="1">
			<tr>
				<th>结算金额 ：</th>
				<td><input type="text" class="text cims_noborder" id="thisRepaySum" name="thisRepaySum"
					value="" readonly />
				</td>
				<th>需匹配金额：</th>
				<td><input type="text" class="text cims_noborder"
					id="matchAmount" name="matchAmount" value="" readonly />
				</td>
				<th>返还金额：</th>
				<td><input type="text" class="text cims_noborder" id="returnAmount" name="returnAmount"
					value="" readonly />
				</td>
			</tr>

			<tr>
				<th>债权数目：</th>
				<td><input type="text" class="text cims_noborder"
					id="creditRows" name="creditRows" maxLength="4" value="" readonly />
				</td>
				<th>实际匹配金额 ：</th>
				<td><input type="text" class="text cims_noborder"
					id="practicalSellSum" name="practicalSellSum" maxLength="18"
					value="" notNull="false" checkType="number" /></td>
				<th></th>
				<td></td>
			</tr>
		</table>
	</div>